﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    
    <form id="form1" runat="server">
    <div>
        <asp:DropDownList ID="TablesDropDownList" runat="server" 
            DataSourceID="allTables" DataTextField="Name"
            onselectedindexchanged="TablesDropDownList_SelectedIndexChanged" 
            ondatabound="TablesDropDownList_DataBound" AutoPostBack="True" 
            Height="23px" Width="83px"></asp:DropDownList>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
            ondatabinding="GridView1_DataBinding" 
            ondatabound="GridView1_DataBound" onrowdeleting="GridView1_RowDeleting" 
            onrowediting="GridView1_RowEditing">
        </asp:GridView>
        <asp:ObjectDataSource ID="allTables" runat="server" SelectMethod="GetAllTables" 
            TypeName="ModdbFrontEnd"></asp:ObjectDataSource>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
            SelectMethod="GetDataTable" TypeName="ModdbFrontEnd">
            <SelectParameters>
                <asp:ControlParameter ControlID="TablesDropDownList" Name="table" 
                    PropertyName="SelectedValue" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
    </div>
    </form>
</body>
</html>
